Document Solutions for PDF
DS.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Spec Namespace / IPdfArrayExt Class / TryGetArray Method / TryGetArray<T>(IPdfArray,Int32,T[],Boolean) Method
The current array.
The index of the value to get.
OUT: The value.
Indicates whether to convert a single T value to an array.

In This Topic
    TryGetArray<T>(IPdfArray,Int32,T[],Boolean) Method
    In This Topic
    Tries to get the array at the specified index, if the value does not exist or cannot be converted to an array of T returns false.
    Syntax
    'Declaration
     
    Public Overloads Shared Function TryGetArray(Of T As IPdfObject)( _
       ByVal array As IPdfArray, _
       ByVal index As System.Integer, _
       ByRef value() As T, _
       Optional ByVal singleToArray As System.Boolean _
    ) As System.Boolean
    public static System.bool TryGetArray<T>( 
       IPdfArray array,
       System.int index,
       out T[] value,
       System.bool singleToArray
    )
    where T: IPdfObject

    Parameters

    array
    The current array.
    index
    The index of the value to get.
    value
    OUT: The value.
    singleToArray
    Indicates whether to convert a single T value to an array.

    Type Parameters

    T

    Return Value

    true if value exists, false otherwise.
    See Also